﻿@model DrillOnline.Models.LoginModel

@{
    ViewBag.Title = "登录";
}

<section id="loginForm">
    <h1>管理员登录。</h1>
    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>“登录”表单</legend>
            <ol>
                <li>
                    @Html.LabelFor(m => m.UserName)
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </li>
                <li>
                    @Html.LabelFor(m => m.Password)
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </li>
                <li>
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                </li>
            </ol>
            <input id="submit" type="submit" value="登录" />
        </fieldset>
    }
</section>

<section class="social" id="socialLoginForm">
    <h2>或作为监控大屏幕使用</h2>
    @using (Html.BeginForm("Login","Media"))
    {     
        @Html.AntiForgeryToken()
        
        @Html.ValidationSummary(true)

        <fieldset class="normal">
            <legend>
                <h3>请输入密码登录:</h3>
            </legend>
            <h3>请输入用户名:</h3>
            <input type="text" id="大屏幕" name="user" value="[大屏幕]">
            <h3>请输入密码:</h3>
            @Html.Password("pwd")
            <hr />
            @Helpers.Submit("登录")
        </fieldset>                           
    }

</section>
<section>
    <h2></h2>
</section>
<div style="display: none;">
    @(System.Security.Principal.WindowsIdentity.GetCurrent().Name)
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
